using System;
using System.Collections.Generic;
using System.Text;
using Unitins.Component.PersistenceLayer;
using Unitins.Component.ComponentMaster;

namespace Unitins.Component.Repository.Sepsi
{
    [Serializable]
    public class Disciplina : IObject<Disciplina>
    {
        #region Fields

        private Int64 idDisciplina;
        private String nome;

        #endregion Fields

        #region Properties

        public Int64 IdDisciplina
        {
            get { return idDisciplina; }
            set { idDisciplina = value; }
        }

        public String Nome
        {
            get { return nome; }
            set { nome = value; }
        }

        #endregion Properties

        #region Constructor

        public Disciplina()
        {
        }

        public Disciplina(Int64 idDisciplina, String nome)
        {
            this.IdDisciplina = idDisciplina;
            this.Nome = nome;
        }

        #endregion Constructors

        #region Methods Overrides

        public String GetToString()
        {
            return
            (
                "{IdDisciplina : " + this.IdDisciplina + "} " + Environment.NewLine +
                "{Nome : " + this.Nome + "} " + Environment.NewLine +
                ""
             );
        }

        public object Clone()
        {
            Disciplina objDisciplina = new Disciplina();

            objDisciplina.IdDisciplina = this.IdDisciplina;
            objDisciplina.Nome = this.Nome;

            return objDisciplina;
        }

        #endregion Methods Overrides

    }

    public enum DisciplinaAttribute
    {
        IdDisciplina = 0,
        Nome = 1,
    }
}
